<?php

namespace app\api\v2\controller;

use app\common\ApiBase;
use polymerize\media\service\BannerService;
use support\Request;
use support\Response;

class Whole extends ApiBase
{
    /**
     * OwenWeb主页列表
     *
     * @param Request $request
     * @return Response
     */
    public function homeBannerByQS(Request $request): Response
    {
        $appVersion = $request->header('AppVersion', '');

        $res = BannerService::getInstance()->getHomeBannerByQSList($request->uid, $appVersion);

        return $this->apiSuccess($res);
    }
}